"use strict";
export function reflect(t, inp, nor) {
  const d = -2*vec2.dot(inp, nor);
  t[0] = d*nor[0]+inp[0];
  t[1] = d*nor[1]+inp[1];
}

export function testlight(pos, dr, xy) {
  return dr[1]*(xy[0]-pos[0]) - dr[0]*(xy[1]-pos[1]);
}